/*
 * Copyright (C) 2023 xuexiangjys(xuexiangjys@163.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package com.xuexiang.templateproject.bean;

//import anet.channel.strategy.dispatch.DispatchConstants;
//import com.jcds.common.utils.Constants;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

public final class Grade {
    private final int grade;
    @NotNull
    private final String gradeName;
    private final int problemSize;

    public Grade(int i2, @NotNull String gradeName, int i3) {
        Intrinsics.checkNotNullParameter(gradeName, "gradeName");
        this.grade = i2;
        this.gradeName = gradeName;
        this.problemSize = i3;
    }

    public static /* synthetic */ Grade copy$default(Grade grade, int i2, String str, int i3, int i4, Object obj) {
        if ((i4 & 1) != 0) {
            i2 = grade.grade;
        }
        if ((i4 & 2) != 0) {
            str = grade.gradeName;
        }
        if ((i4 & 4) != 0) {
            i3 = grade.problemSize;
        }
        return grade.copy(i2, str, i3);
    }

    public final int component1() {
        return this.grade;
    }

    @NotNull
    public final String component2() {
        return this.gradeName;
    }

    public final int component3() {
        return this.problemSize;
    }

    @NotNull
    public final Grade copy(int i2, @NotNull String gradeName, int i3) {
        Intrinsics.checkNotNullParameter(gradeName, "gradeName");
        return new Grade(i2, gradeName, i3);
    }

    public boolean equals(@Nullable Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof Grade)) {
            return false;
        }
        Grade grade = (Grade) obj;
        return this.grade == grade.grade && Intrinsics.areEqual(this.gradeName, grade.gradeName) && this.problemSize == grade.problemSize;
    }

    public final int getGrade() {
        return this.grade;
    }

    @NotNull
    public final String getGradeName() {
        return this.gradeName;
    }

    public final int getProblemSize() {
        return this.problemSize;
    }

    public int hashCode() {
        return (((this.grade * 31) + this.gradeName.hashCode()) * 31) + this.problemSize;
    }

    @NotNull
    public String toString() {
        return "Grade(grade=" + this.grade + ", gradeName=" + this.gradeName + ", problemSize=" + this.problemSize + ')';
    }
}